#pragma once
#include <iostream>
#include <vector>
#include <string>

#include "Triple.h"

using namespace std;
typedef int INTEGER;
typedef int INDEX;
typedef int LINENUM;
typedef bool BOOLEAN;
typedef string NODETYPE;
typedef string LINKTYPE;


class Uses
{
private:
	vector<Triple> _table;
	INTEGER _size;
public:
	Uses();
	BOOLEAN setUses(LINENUM line, INDEX procIndex, INDEX varIndex);
	vector <Triple> getUses();
	Triple getUses(INDEX);
	INTEGER getUsesSize();
	vector<INDEX> getVariables(LINENUM line);
	vector<LINENUM> getLines(INDEX index);
	BOOLEAN isUses(LINENUM line, INDEX index);
};


